package cn.com.bluemoon.daps.api.model;


import cn.com.bluemoon.daps.api.model.factory.RemoteModeUserAccreditServiceFactory;
import cn.com.bluemoon.daps.common.constant.ServiceNameConstants.DapsApiModel;
import cn.com.bluemoon.daps.common.domain.ResultBean;
import cn.com.bluemoon.daps.model.entity.DapDataModelUserAccredit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;
import java.util.Map;

@FeignClient(value = DapsApiModel.SERVICE, fallbackFactory = RemoteModeUserAccreditServiceFactory.class)
@RequestMapping(DapsApiModel.BASE_URI + DapsApiModel.API_MODEL_USER_ACCREDIT)
@ApiIgnore
public interface RemoteModeUserAccreditService {

    @GetMapping("/")
    public ResultBean<Map<String, List<DapDataModelUserAccredit>>> listByModel();
}
